import request from '@/utils/request'

// 查询圈子热搜推送记录列表
export function listPushRecord(query) {
  return request({
    url: '/pushRecord/pushRecord/list',
    method: 'get',
    params: query
  })
}

// 查询圈子热搜推送记录详细
export function getPushRecord(id) {
  return request({
    url: '/pushRecord/pushRecord/' + id,
    method: 'get'
  })
}

// 新增圈子热搜推送记录
export function addPushRecord(data) {
  return request({
    url: '/pushRecord/pushRecord',
    method: 'post',
    data: data
  })
}

// 修改圈子热搜推送记录
export function updatePushRecord(data) {
  return request({
    url: '/pushRecord/pushRecord',
    method: 'put',
    data: data
  })
}

// 删除圈子热搜推送记录
export function delPushRecord(id) {
  return request({
    url: '/pushRecord/pushRecord/' + id,
    method: 'delete'
  })
}
